Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store buffered data size as usize (fixes #269) #542

Merged
merged 1 commit into from
Sep 28, 2021

Conversation

nox
Copy link
Contributor

@nox nox commented May 5, 2021

No description provided.

@seanmonstar
Copy link
Member

Does it actually fix #269? I'd think that it's still possible to overflow this if you buffer a few bufs with combined space over a usize. Especially on 32-bit.

@nox
Copy link
Contributor Author

nox commented Sep 9, 2021

Probably but this patch still helps, I'll change the commit message though.

@seanmonstar seanmonstar merged commit 508bcb1 into master Sep 28, 2021
@seanmonstar seanmonstar deleted the store-buffered-capacity-as-usize branch September 28, 2021 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants